package com.mxpio.erp.common.equipment.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mxpio.erp.common.equipment.entity.EquipmentStock;
import com.mxpio.erp.common.equipment.entity.EquipmentStockRkApplyItem;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.Dept;
import com.mxpioframework.security.entity.User;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 备品入库
 * @Author: jeecg-boot
 * @Date:   2021-10-07
 * @Version: V1.0
 */
@Data
public class EquipmentStockRkApplyPage {

	/**id*/
	private String id;
	/**创建人*/
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	private Date createTime;
	/**删除标志*/
	private Integer isDel;
	/**更新人*/
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	private Date updateTime;
	/**版本*/
	private Integer version;
	/**入库单号*/
	private String code;
	/**厂区*/
    @Dict(dicCode = "base_factory")
	private String factory;
	/**来源单号*/
	private String fromorderno;
	/**单据状态*/
	private Integer status;
	/**申请人*/
    @Dict(dicEntity = User.class, dicText = "nickname", dicCode = "username")
	private String applyUserId;
	/**部门*/
    @Dict(dicEntity = Dept.class, dicText = "deptName", dicCode = "id")
	private String deptId;
	/**仓库*/
    @Dict(dicEntity = EquipmentStock.class, dicText = "stockName", dicCode = "id")
	private String stockId;

	private List<EquipmentStockRkApplyItem> tpmStockRkApplyItemList;

}
